<style>
#goodsTagList {overflow:hidden;width:100%;}
#goodsTagList li{display:inline-block;padding:1em;background:#fff;margin:0 1em 1em 0;text-align:center;}
</style>

<div class="tableform clearfix">
    <div class="">

        <div class="division clearfix">
            <div class="span-auto" style="padding-bottom:1em;">
                
                <button class="btn btn-primary" onclick="new Dialog('index.php?app=tags&ctl=admin_tags&act=add&p[0]=<{$tag_id}>',{width:400,height:300,title:'<{t}>添加首页商品<{/t}>'})">
                <span>
                <span>添加首页商品</span></span>
                </button>

                * 建议最少4个商品

            </div>
            
            <div>
                <{if $goodsTagList}>                   
                <ul id="goodsTagList"> <{foreach from=$goodsTagList item=item}>
                    <li><image height=100 src="<{$item.image|default:$imageDefault.S.default_image|storager:'s'}>" />
                    <br/>
                    <{$item.goods_name}>
                    <br/>
                    <a href="index.php?app=tags&ctl=admin_tags&act=add&p[0]=<{$tag_id}>&p[1]=<{$item.id}>" target="dialog::{title:'编辑关联商品', width:580, height:300}">修改</a>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="index.php?app=tags&ctl=admin_tags&act=delete&id=<{$item.id}>" >删除</a>
                    </li><{/foreach}>
                </ul>
                <{/if}>
            </div>

        </div>


        <div class="division">

        </div>

    </div>

    </div>
